package kr.hkit.powerjava.chapter08.work;
/* Exercise 2 아래 예제 잘못된 부분을 고치시오 */
/* class Televison{
	 private String model;
	 void setModel(String b){
		 model = b;
	 }
	 void getModel(){
		 return model;
	 }
 }
public class TelevisionTest {
	public static void main(String[] args) {
		Television t = new Televison();
		t.setMode("STV-101");
		String b = getModel();
	}
}
*/
class Televison {
	private String model;
	void setModel(String b) {
		model = b;
	}
	String getModel(){
		return model;
	}
	@Override
	public String toString() {
		return "Televison [model=" + model + "]";
	}
}
public class TelevisionTest {
	public static void main(String[] args) {
		Televison t = new Televison();
		t.setModel("STV-101");
		t.getModel();
		System.out.println(t);
	}
}
